package com.dragon.modules.yuegou.service.impl.act;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.dragon.modules.yuegou.entity.act.SignInEntity;
import com.dragon.modules.yuegou.mapper.act.SignInMapper;
import com.dragon.modules.yuegou.query.act.SignInQuery;
import com.dragon.modules.yuegou.service.act.SignInService;
import org.springframework.stereotype.Service;

/**
 * 年会签到 服务实现
 *
 * @author pbuilder generated
 * @date 2020-01-14 20:49:56
 * @version 2.0
 */
@Service("actSignInService")
public class SignInServiceImpl
		extends ServiceImpl<SignInMapper, SignInEntity>
		implements SignInService {

	@Override
	public Boolean isSignIn(String memberId) {
		SignInQuery query = new SignInQuery();
		query.setMemberId(memberId);
		return count(query.toQueryWrapper()) > 0;
	}
}